package com.onesports.intelligent.k12.polarlight.domain.entity.market;

import com.baomidou.mybatisplus.annotation.TableName;

import com.onesports.intelligent.k12.polarlight.common.domain.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 财务流水表(充值提现)
 *
 * @author
 * @since 1.0.0 2022-07-08
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("funds_trade_bill")
public class FundsTradeBill extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;

    /**
     * 微信登录用户ID
     */
	private String wxUserId;
    /**
     * 交易金额
     */
	private BigDecimal amount;
    /**
     * 交易时间
     */
	private Date operateTime;
    /**
     * 账单流水号
     */
	private String tradeNo;
    /**
     * 关联订单号
     */
	private String orderNo;
    /**
     * 微信支付系统生成的订单号
     */
	private String transactionId;
    /**
     * 交易类型(1:充值，2：提现，3：课款缴费，4：团长分佣，5：教练分佣)
     */
	private String tradeType;
    /**
     * 是否收入:true-收入;false-支出
     */
	private Boolean income;

	/**
	 * 余额
	 */
	private BigDecimal remainder;
}
